openssl dgst
命令手册OpenSSL command to generate digest values and perform signature operations. More information: https://www.openssl.org/docs/manmaster/man1/openssl-dgst.html.
openssl dgst -sha256 -binary -out {{output_file}} {{input_file}}
openssl dgst -sign {{private_key_file}} -sha256 -sigopt rsa_padding_mode:pss -out {{output_file}} {{input_file}}
openssl dgst -verify {{public_key_file}} -signature {{signature_file}} -sigopt rsa_padding_mode:pss {{signature_message_file}}
openssl dgst -sign {{private_key_file}} -sha256 -out {{output_file}} {{input_file}}
openssl dgst -verify {{public_key_file}} -signature {{signature_file}} {{signature_message_file}}